package com.example.schedulecard.Entity;

import java.io.Serializable;

public class Course implements Serializable {
//        courseName:课程名；teacher:上课教师；classRoom:上课教室；day:星期几的课程
//        classStart:课程开始的节数；classEnd:课程结束的节数
    private String courseName;
    private String teacher;
    private String classRoom;
    private Integer day;
    private Integer classStart;
    private Integer classEnd;
    private String scheduleName;
    private Integer color;
    public Course(){

    }

    public Course(String courseName,String teacher,String classRoom,
                  Integer day,Integer classStart,Integer classEnd,String scheduleName,Integer color){
        this.courseName = courseName;
        this.teacher = teacher;
        this.classRoom = classRoom;
        this.day = day;
        this.classStart = classStart;
        this.classEnd = classEnd;
        this.scheduleName = scheduleName;
        this.color = color;
    }

    public Course(String courseName,String teacher,String classRoom,
                  Integer day,Integer classStart,Integer classEnd,String scheduleName){
        this.courseName = courseName;
        this.teacher = teacher;
        this.classRoom = classRoom;
        this.day = day;
        this.classStart = classStart;
        this.classEnd = classEnd;
        this.scheduleName = scheduleName;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getClassRoom() {
        return classRoom;
    }

    public void setClassRoom(String classRoom) {
        this.classRoom = classRoom;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public Integer getClassStart() {
        return classStart;
    }

    public void setClassStart(Integer classStart) {
        this.classStart = classStart;
    }

    public Integer getClassEnd() {
        return classEnd;
    }

    public void setClassEnd(Integer classEnd) {
        this.classEnd = classEnd;
    }

    public String getScheduleName() {
        return scheduleName;
    }

    public void setScheduleName(String scheduleName) {
        this.scheduleName = scheduleName;
    }

    public Integer getColor() {
        return color;
    }

    public void setColor(Integer color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseName='" + courseName + '\'' +
                ", teacher='" + teacher + '\'' +
                ", classRoom='" + classRoom + '\'' +
                ", day=" + day +
                ", classStart=" + classStart +
                ", classEnd=" + classEnd +
                ", scheduleName='" + scheduleName + '\'' +
                ", color=" + color +
                '}';
    }
}
